module.exports = {
    devServer: {
      before(app){
        app.get('/api/goods', function(req, res) {
          res.json({
            success: true,
            msg: '',
            data: [
              { id: 1, title: '苹果',  price: 8.00 },
              { id: 2, title: '葡萄', price: 5.00 },
              { id: 3, title: '红提', price: 12.00 },
            ]
           });
        });
      }
    }
  }
  